<?php

namespace App\Http\Requests\Index\SignUp;

use App\Http\Requests\Request;

class CreateRequest extends Request{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'company' => 'required',
            'contact_person' => 'required',
            'phone' => 'required',
            'code' => 'required|captcha',
        ];
    }

    public function messages(){
        return [
            'company.required' => '企业名称不能为空',
            'contact_person.required' => '联系人不能为空',
            'phone.required' => '联系电话不能为空',
            'code.required' =>'验证码不能为空',
            'code.captcha' => '验证码错误，请重新输入'
        ];
    }
}